<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include/context.jsp" %>
<form action="${ctx}/system/sysparam/save" method="post" style="margin: 0px;"  onSubmit="return Validator.Validate(this,3) ">
			
	<input type="hidden" name="sysparam.id" value="${sysparam.id}">
	
	<table cellspacing="0" cellpadding="0" class="form-grid">
		<tbody>
			<tr>
				<div align="center" style="color:red;">${sysparam.description }</div>
			</tr>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 20%;">名称：</td>
				<td>
					<input type="text" name="sysparam.name" size="30" value="${sysparam.name}"  dataType="Require" msg="名称不能为空" />
				</td>
				<td style="text-align: right; padding-right: 3px; width: 10%;">值：</td>
				<td>
					<!--  -->
					<c:choose>
						<c:when test="${sysparam.display eq 'option'}">
							<select name="sysparam.value">
								<option value="1" ${sysparam.id==1 ? 'selected="selected"' : ''}>按种类优先级匹配</option>
								<option value="2" ${sysparam.id==2 ? 'selected="selected"' : ''}>按总数量优先级匹配</option>
							</select>
						</c:when>
						<c:when test="${sysparam.display eq 'input'}">
							<input type="text" name="sysparam.value" size="30" value="${sysparam.value}"  dataType="Require" msg="不能为空" />
						</c:when>
					</c:choose>
				</td>
			</tr>
			<!--
			<tr>
				 <td style="text-align: right; padding-right: 3px; width: 10%;">编码：</td>
				<td><input  readonly="readonly" type="text" name="sysparam.code" size="15" value="${sysparam.code}"/></td>
			</tr>
			 -->
		</tbody>
	</table>
			
	<div class="window_footer"><input type="submit" value="确定"></div>
</form>

<%@ include file="/include/script.jsp" %>